import { NetWork_Post, NetWork_Get } from "./commonServer";

/**
 * 批量体征录入
 * @param {input data} bodydata
 * @param {回调} callback
 */
function getTodayTourInfusionTask(bodydata, callback) {
  let netapi = "getTodayTourInfusionTask",
    reqError = {
      error: {
        code: "-1",
        msg: "获取数据失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

/**
 * 获取患者常规巡视列表
 * @param {input data} bodydata
 * @param {回调} callback
 */
function getNormalTourTaskList(bodydata, callback) {
  let netapi = "getNormalTourTaskList",
    reqError = {
      error: {
        code: "-1",
        msg: "获取数据失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

/**
 * 添加吸氧巡视
 * @param {input data} bodydata
 * @param {回调} callback
 */
function addOxyRec(bodydata, callback) {
  let netapi = "addOxyRec",
    reqError = {
      error: {
        code: "-1",
        msg: "添加吸氧巡视失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

/**
 * 获取患者用氧巡视
 * @param {input data} bodydata
 * @param {回调} callback
 */
function getPtOxyRec(bodydata, callback) {
  let netapi = "getPtOxyRec",
    reqError = {
      error: {
        code: "-1",
        msg: "获取数据失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

/**
 * 编辑常规巡视
 * @param {input data} bodydata
 * @param {回调} callback
 */
function modifyTourNormal(bodydata, callback) {
  let netapi = "modifyTourNormal",
    reqError = {
      error: {
        code: "-1",
        msg: "添加吸氧巡视失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

function modifyTourOxygen(bodydata, callback) {
  let netapi = "modifyTourOxygen",
    reqError = {
      error: {
        code: "-1",
        msg: "编辑常规巡视失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

function addTourNormal(bodydata, callback) {
  let netapi = "addTourNormal",
    reqError = {
      error: {
        code: "-1",
        msg: "添加常规巡视失败"
      }
    };

  NetWork_Post(netapi, bodydata, callback, reqError);
}

function addTourInfusion(bodydata, callback) {
  let netapi = "addTourInfusion",
    reqError = {
      error: {
        code: "-1",
        msg: "提交失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

function getOxygenTourRecByDate(bodydata, callback) {
  let netapi = "getOxygenTourRecByDate",
    reqError = {
      error: {
        code: "-1",
        msg: "提交失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

function getInfusionTourRecByDate(bodydata, callback) {
  let netapi = "getInfusionTourRecByDate",
    reqError = {
      error: {
        code: "-1",
        msg: "提交失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

function getNormalTourRecByDate(bodydata, callback) {
  let netapi = "getNormalTourRecByDate",
    reqError = {
      error: {
        code: "-1",
        msg: "提交失败"
      }
    };
  NetWork_Post(netapi, bodydata, callback, reqError);
}

export {
  getTodayTourInfusionTask,
  getNormalTourTaskList,
  addOxyRec,
  getPtOxyRec,
  modifyTourNormal,
  addTourInfusion,
  modifyTourOxygen,
  addTourNormal,
  getOxygenTourRecByDate,
  getInfusionTourRecByDate,
  getNormalTourRecByDate
};
